import os
import sys


script_dir=os.path.dirname(os.path.abspath(__file__))
sys.path.append(script_dir)
from amz_login import AmzLogin
# from auto_download_report import DownLoadReport

amz_login = AmzLogin()

def main_download(args):
    browser_list = amz_login.get_browser_list()
    for browser in browser_list:
        store_id = browser.get('browserOauth')
        store_name = browser.get("browserName")
        driver = amz_login.amz_designate_store_login(store_id, store_name)
        if not driver:
            continue
        # DownLoadReport.download_report(driver, store_name)


def main_upload(store_id, store_name):
    print("---------------------------")
    driver = amz_login.amz_designate_store_login(store_id, store_name)
    print("---------------------------1111111111111111111111111111")
    # DownLoadReport.download_report(driver)
